-
Notifications
You must be signed in to change notification settings - Fork 105
Unit/functional test improvements to enable CTSM SystemTests #1426
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This is a kludge because it (a) downloads the datm_file from my Dropbox and (b) requires an extra line in each config file section. Revert this change once BONA_datm.nc is on Git LFS and that's working consistently.
adrifoster
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks! I have some suggestions - namely I think we need a new extended base class to handle driver data instead of just adding it as a new argument to all classes
| dictionary[section][option] = config.get(section, option) | ||
| value = config.get(section, option) | ||
|
|
||
| # If the option is one that we expect to be a path, ensure it's an absolute path. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems like some of these updates could be moved into the check_arg_validity method. I think we could also combine your new get_abspath_from_config_file with the other file checking methods that are already here and just use it instead.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I moved the config file check to check_arg_validity(). I'm not sure what you mean about get_abspath_from_config_file(), though?
Allows unit tests to be able to run without requiring matplotlib.
|
|
@glemieux git-lfs worked for me on a fresh clone! @adrifoster That means this is actually now ready for re-revew. |
great! I will take a look today |
adrifoster
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for these updates! Looks great
|
I ran into #1441 during a test to simply make sure the |
Description:
--config-fileargument.Previously filed as adrifoster#4.
CTSM PR here: ESCOMP/CTSM#3251
Waiting on NGEET GitHub org to get Git LFS working.
Collaborators:
Expectation of Answer Changes:
None
Checklist
If this is your first time contributing, please read the CONTRIBUTING document.
All checklist items must be checked to enable merging this pull request:
Contributor
Integrator
Test Results:
CTSM (or) E3SM (specify which) test hash-tag:
CTSM (or) E3SM (specify which) baseline hash-tag:
FATES baseline hash-tag:
Test Output: